package com.pan.admin.module.channel.dao;

import com.pan.admin.module.channel.entity.LoanChannelFlowConfigIpOffModule;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoanChannelFlowConfigIpOffModuleDao {
    /**
     *  根据渠道获取IP屏蔽城市集合
     *
     *  @param  loanChannelId   渠道id
     *  @return List
     */
    List<LoanChannelFlowConfigIpOffModule> list(Long loanChannelId);
    /**
     *  批量插入该渠道的城市项
     *
     *  @param list IP城市屏蔽列表
     */
    void batchInsert(List<LoanChannelFlowConfigIpOffModule> list);

    /**
     *  根据渠道id删除所有IP屏蔽城市
     *
     *  @param loanChannelId    渠道id
     */
    void delete(Long loanChannelId);
}
